#include "tile.h"

tile::tile(sf::FloatRect rect){
    tileRect = rect;
    //rect.setFillColor(sf::Color::Transparent);
    //rect.setOutlineColor(sf::Color::Blue);
    //rect.setOutlineThickness(1);
    layerType.push_back(0); //base layer
    layerType.push_back(0); //middle layer
    layerType.push_back(0); //fog layer
    explored = false;
}

//returns the type of the tile at the layer index
int tile::getTileType(int layer){
    return layerType[layer];
}

//sets the type of the tile at the layer index
void tile::setTileType(int layer, int type){
    layerType[layer] = type;
}

void tile::toggleExplored(){
    explored = true;
}

bool tile::isExplored(){

    return explored;
}


tile::~tile()
{
    //dtor
}
